Skip to content

[16.0][ADD] product_restricted_tracking#2258

Open
AungKoKoLin1997 wants to merge 1 commit intoOCA:16.0from
qrtl:16.0-add-product_restricted_tracking
Open

[16.0][ADD] product_restricted_tracking#2258
AungKoKoLin1997 wants to merge 1 commit intoOCA:16.0from
qrtl:16.0-add-product_restricted_tracking

Conversation

@AungKoKoLin1997
Copy link
Copy Markdown
Contributor

@AungKoKoLin1997 AungKoKoLin1997 commented Apr 13, 2026

This module adds a 'restricted_tracking' field to the product category model.
With this optional selection field, you can enforce that all products in a category must use a specific tracking method (Serial Number, Lot, or None).

@qrtl QT6111

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 16.0-add-product_restricted_tracking branch from 8856980 to f74be0c Compare April 14, 2026 02:21
@OCA-git-bot OCA-git-bot added series:16.0 mod:product_restricted_tracking Module product_restricted_tracking labels Apr 14, 2026
@AungKoKoLin1997 AungKoKoLin1997 marked this pull request as ready for review April 14, 2026 02:21
Comment thread product_restricted_tracking/models/product_category.py Outdated
Comment thread product_restricted_tracking/models/product_category.py
Comment thread product_restricted_tracking/tests/__init__.py Outdated
Comment thread product_restricted_tracking/tests/test_product_restricted_tracking.py Outdated
Comment thread product_restricted_tracking/tests/test_product_restricted_tracking.py Outdated
@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 16.0-add-product_restricted_tracking branch from f74be0c to 4a65660 Compare April 14, 2026 04:02
Copy link
Copy Markdown
Member

@yostashiro yostashiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review. LGTM.

@SanamiK
Copy link
Copy Markdown

SanamiK commented Apr 15, 2026

I followed these steps, but the category I set Lot or S/N did not appear.

  1. Configuration > Product Categories > NEW > Pick By Lots/By SN/No Tracking in Restricted Tracking field
  2. Products > select Product Category

I guess I didn't make a mistake when setting
@AungKoKoLin1997 could you please check?

set tracking product category pick product category pick product category2

@SanamiK
Copy link
Copy Markdown

SanamiK commented Apr 15, 2026

@AungKoKoLin1997 Solved the problem. 1 step of setting was missing.

Copy link
Copy Markdown

@SanamiK SanamiK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Products Category appeared based on the setting "Traceability > Tracking".

LGTM

Image Image

Comment thread product_restricted_tracking/models/product_template.py Outdated
@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 16.0-add-product_restricted_tracking branch from 4a65660 to ef72518 Compare April 17, 2026 04:46
Copy link
Copy Markdown
Member

@yostashiro yostashiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@SanamiK
Copy link
Copy Markdown

SanamiK commented Apr 21, 2026

@AungKoKoLin1997 Could you please modify the product_category.py file so that translations can be applied to the dropdown menu?

@SanamiK SanamiK force-pushed the 16.0-add-product_restricted_tracking branch 3 times, most recently from 7ff6b23 to f85731c Compare April 21, 2026 03:33
[IMP] product_restricted_tracking: improve to apply translations to dropdown menus

Co-authored-by: SanamiK <sanami@quartile.co>
@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 16.0-add-product_restricted_tracking branch from f85731c to e464597 Compare April 21, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants